<?php
/**
 * Created by PhpStorm.
 * User: sunzexin
 * Date: 2018/2/21
 * Time: 11:34
 */

namespace App\Http\Traits;


use Illuminate\Http\Request;

trait RecruitmentTrait
{
    use BaseTrait;

    // 咖啡馆ID
    protected $cafe_id;
    // 分页大小
    protected $limit;
    // 招聘标题
    protected $title;
    // 招聘岗位
    protected $post;
    // 招聘人数
    protected $number;
    // 招聘类型
    protected $type;
    // 薪资待遇
    protected $salary;
    // 工作时间
    protected $work_time;
    // 性别要求
    protected $sex;
    // 学历教育
    protected $education;
    // 经验
    protected $experience;
    // 备注
    protected $remark;
    // 招聘信息ID
    protected $recruitment_id;
    // 显示状态
    protected $status;

    public function __construct(Request $request)
    {
        $this->cafe_id = $request->input('cafe_id', 0);
        $this->limit = $request->input('limit', 0);
        $this->title = $request->input('title', '');
        $this->post = $request->input('post', 0);
        $this->number = $request->input('number', 0);
        $this->type = $request->input('type', 0);
        $this->salary = $request->input('salary', 0);
        $this->work_time = $request->input('work_time', '');
        $this->sex = $request->input('sex', 0);
        $this->education = $request->input('education', 0);
        $this->experience = $request->input('experience', '');
        $this->remark = $request->input('remark', '');
        $this->recruitment_id = $request->input('recruitment_id', 0);
        $this->status = $request->input('status', '');
    }
}